<form method="post" action="<?=$this->load->prefix()?>/<?=$this->load->controller()?>/form/" class="browse">

	<!-- Actions -->
	
	<div class="right">
		<div id="visual-type" class="left buttonset">
			<input type="radio" id="app-dark" name="radio"  checked="checked" /><label for="app-dark">App Dark<!--<img src="/images/icons/common/2x2_grid.png"/>--></label>
			<input type="radio" id="app-classic" name="radio" /><label for="app-classic">App Classic<!--<img src="/images/icons/common/list_bullets.png"/>--></label>
			<input type="radio" id="app-sic" name="radio" /><label for="app-sic">App Sic<!--<img src="/images/icons/common/list_bullets.png"/>--></label>
		</div>
	</div>
	
	<!-- Visualization -->
	
	<div class="left">
		<a class="button" href="<?=$this->load->prefix()?>/<?=$this->load->controller()?>/add/"><strong>&#10010;</strong> Add new</a>
	</div>
	
	<div class="space clear"></div>

	<!-- Table of items -->	

	<? if ($data['listado']): ?>
	
		<div class="legend"><h3><?=$this->load->method()?></h3></div>				
		
		<ul id="item-list" class="list">
				
			<li class="th">
			
				<!-- Select All -->
				<p>
					<input data-action="selectall" type="checkbox">
				</p>
			
				<!-- Name of columns -->
				<? foreach ($data['campos'] as $k => $v): ?>
					
					<? if ($k != $data['key']): ?>
					
						<p><?=$v['Name']?></p>
					
					<? endif; ?>
					
				<? endforeach; ?>
			
				<!-- Search -->
				<p></p>
			
			</li>
			
			<!-- Rows -->
			
			<? foreach($data['listado'] as $key_item => $value_item):  ?>

				<li class="td">
				
					<!-- Checkboxes -->
					<p>							
						<input type="checkbox" name="data[id][<?=$key_item?>]" value="<?=$key_item?>">
					</p>
				
				
					<!-- Data -->
					<? foreach ($value_item as $k => $v): ?>
						
						<? if ($k != $data['key']): ?>
						
							<p><a href="<?=$this->load->prefix()?>/<?=$this->load->controller()?>/details/<?=$key_item?>"><?=($v)?></a></p>
						
						<? endif; ?>
					
					<? endforeach;?>
				
					<!-- Direct Actions -->
					<p>
						<span class="invisible actions">
							<a href="<?=$this->load->prefix()?>/<?=$this->load->controller()?>/update/<?=$key_item?>"><span class="icon ui-icon-wrench"></span>Update</a>
							<a href="<?=$this->load->prefix()?>/<?=$this->load->controller()?>/delete/<?=$key_item?>"><span class="icon ui-icon-trash"></span>Delete</a>
						</span>
					</p>
				
				</li>

			<? endforeach; ?>
		
		</ul>
		
		<div class="submits">
			<div class="buttonset">
				<button name="data[action]" value="update">Update</button>
				<button name="data[action]" value="delete">Remove</button>
			</div>
		</div>
		
	<? else: ?>

		No hay registros para mostrar.

	<? endif; ?>

</form>

<!-- / Table of items -->
